package com.lesales.dao.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.lesales.dao.interfaces.IFunctionDao;
import com.lesales.model.Function;

@Repository
public class FunctionDaoImpl extends BaseDaoImpl<Function, Serializable> implements IFunctionDao {

	List<Function> functions;

	@Override
	public List<Function> findFunctionById(int id) {

		String hql = "FROM Function f WHERE f.id=" + id;
		functions = queryList(hql);
		return functions;
	}

}
